package com.jluzh10.learning.domain;

import java.util.Date;

public class UsersStudy {
    private Integer id;

    private Integer userId;

    private Integer courseId;

    private Integer chapterId;

    private Byte state;

    private Date createTime;

    private Date lastTime;

    private Course course;

    private Chapter chapter;
    public UsersStudy(Integer id, Integer userId, Integer courseId, Integer chapterId, Byte state, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.courseId = courseId;
        this.chapterId = chapterId;
        this.state = state;
        this.createTime = createTime;
    }

    public UsersStudy(Integer id, Date lastTime) {
        this.id = id;
        this.lastTime = lastTime;
    }

    public UsersStudy() {

    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Chapter getChapter() {
        return chapter;
    }

    public void setChapter(Chapter chapter) {
        this.chapter = chapter;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }
}